import 'package:fluro/fluro.dart';
import 'package:ls_work/a_mine/page/me_health_page.dart';
import 'package:ls_work/routers/router_init.dart';
import 'page/my_page.dart';
import 'page/me_feedback.dart';
import 'page/me_health_page.dart';
import 'page/me_setting.dart';
import 'page/message_setting_page.dart';
import 'page/me_qualifications_page.dart';

class MyRouter implements IRouterProvider {
  static String myPage = "/mine";
  static String feedBack = "/mine/feedBack";
  static String myHealth = "/mine/myHealth";
  static String mySetting = "/mine/mySetting";
  static String offerpolicyPage = "/mine/offerPolicyPage";
  static String messageSetting = "/mine/messageSetting";
  static String myQualifications = "/mine/myQualifications";

  @override
  void initRouter(FluroRouter router) {
    router.define(myPage,
        handler: Handler(handlerFunc: (_, params) => MyPage()));
    router.define(feedBack,
        handler: Handler(handlerFunc: (_, params) => MeFeedBack()));
    router.define(myHealth,
        handler: Handler(handlerFunc: (_, params) => MeHealthPage()));
    router.define(mySetting,
        handler: Handler(handlerFunc: (_, params) => MySettingPage()));
    router.define(messageSetting,
        handler: Handler(handlerFunc: (_, params) => MessageSettingPage()));
    router.define(myQualifications,
        handler: Handler(handlerFunc: (_, params) => MequalificationsPage()));
  }
}
